﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace H05classtype
{
    class Program
    {
        static void Main(string[] args)
        {
            Book b1 = new Book();

            b1.name = "平凡的世界";
            b1.age = 345;
            b1.price = 34.0;

            Console.WriteLine("{0}共{1}页，价格{2}元",b1.name,b1.age,b1.price);

            Book b2 = b1;

            b2.price = 100.0;

            Console.WriteLine("{0}共{1}页，价格{2}元", b1.name, b1.age, b1.price);

            Console.ReadKey();
        }
    }

    class Book
    {
        /// <summary>
        /// Book类：用来描述系统中数据库类实体类
        /// </summary>
        public string name;
        public int age;
        public double price;
    }
}
